def standardTime(time24):
    [hour, min] = time24.split(':')
    hour = int(hour)
    if hour >= 12:
        suffix = 'PM'
        if hour > 12:
            hour -= 12
    else:
        suffix = 'AM'
        if hour == 0:
            hour = 12
    return str(hour) + ':' + min + ' ' + suffix

print(standardTime('14:15'))

